package com.leancloud.circle.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.EditText;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.aries.ui.view.title.TitleBarView;
import com.leancloud.circle.R;
import com.leancloud.circle.manage.CirclePathManage;

import tech.com.commoncore.base.BaseTitleActivity;

@Route(path = CirclePathManage.CIRCLE_PUBLISH_TOPIC)
public class PublishTopicActivity extends BaseTitleActivity {
    private EditText titleEt, contentEt;

    @Override
    public void setTitleBar(TitleBarView titleBar) {
        titleBar.setTitleMainText(getResources().getString(R.string.circle_post));
    }

    @Override
    public int getContentLayout() {
        return R.layout.activity_publish_topic;
    }

    @Override
    public void initView(Bundle savedInstanceState) {
        titleEt = findViewById(R.id.edit_discuss_title);
        contentEt = findViewById(R.id.edit_discuss_content);

        findViewById(R.id.edit_discuss_submit).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                handlerSubmit();
            }
        });
    }

    private void handlerSubmit() {
        String title = titleEt.getText().toString();
        String content = contentEt.getText().toString();

    }
}
